bmpred

## bmpred [Tool Command]

Reduces color of bitmap.

### Syntax

    bmpred [-c/-n/-s/-p/-P] -o output_file input_file ...

### Description

Reduces color of bitmap.

You can create a common palette for more than one image, specify a palette and reduce the color, or specify background color and reduce the color.

Command arguments are shown below:

input_file
  Input bitmap file. More than one can be specified.
-o output_file
  Output file. Unless specified, it is created from Input file name. When a palette is output, the extension will change to `.act`. When a bitmap is output, `_rd` will be attached to the base name of the output file name.
-c color
  Specifies background color. You can specify as RGB (255,0,0), color code (ff0000), or color name (red). When the RGB method is used, do not insert a space before or after the ','. When executing a command in Bash, omit ( ).
-n num_of_colors
  Specifies the number of colors to reduce. The default number is 256.
-s start_number
  Specifies the starting position of the color numbers when reducing colors. Unless specified, it will be 0. When this flag is specified, transparent colors use Number 0, and black uses Number 1 - (start_number-1).
-P
  Outputs palette.
-p palette_file
  Specifies palette. Unless the palette is created automatically, specify this argument. The -P and -p arguments cannot be used simultaneously.

### Note

The input image must be in 24 bit format. The output file is output in 4 bit when less than 16 colors, and in 8 bit otherwise. However, even with 16 colors, the file will be output in 8 bit when start_number + num_of_colors is larger than 16.

AGB-06-0031-001A (2/26/01)
© 2001 Nintendo of America Inc.